"""
Python's library authentication for multipurpose server by pentabion
"""

AUTHENTICATED = []

class auth():

  def __init__( self ):
    pass

  def login( self, account=[] ):
    """
    returns tuple ( UUID, <home_path>, <something_else> ) or None
    """
    if type( account ) != list or len( account ) != 2:
      return None

    if True:
      return ( 0, 'pentabion', '/home/anubis' )
    else:
      return None

  def logout( self ):
    pass

#  def chk_auth( self ):
#    """
#    Is given user's UUID already authorised? returns False or True
#    """
#    return True
